	function apgarcalc(activity,pulse,grimace,color,breathing){

	
var score=0;	
score=activity+pulse+grimace+color+breathing;	

	var interp="fairly low";
	if (score>6){
	interp="normal";
	}
  if (score<4){
	interp="critically low";
	}
		
	
return {
	score:score,
	interp:interp
	
	};		 
}




function ref(){
// display reference
return "Apgar, Virginia (1953). A proposal for a new method of evaluation of the newborn infant. Curr. Res. Anesth. Analg. 32 (4): 260-267" +"<br />The test is generally done at one and five minutes after birth, and may be repeated later if the score is and remains low. Scores 3 and below are generally regarded as critically low, 4 to 6 fairly low, and 7 to 10 generally normal";
}